<template>
    <div class="public-header">
        <div class="title">{{ title ? title : '欢迎来到我的博客' }}</div>
        <div class="watermark">@zs.duan</div>
    </div>
</template>
<script>
export default {
    name: 'PublicTop',
    props: {
        title: {
            type: String,
            default: ''
        }
    },
    data() {
        return {

        }
    },
    mounted() {

    },

    methods: {

    }
}
</script>
<style lang="scss" scoped>
.public-header {
    width: 100%;
    height: 600px;
    background-color: rgb(32, 30, 30);
    text-align: center;
    color: #fff;
    font-size: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    overflow: hidden;

    .watermark {
        position: absolute;
        right: 5px;
        color: rgba(255, 255, 255, 0.3);
        font-size: 12px;
        bottom: 10px;
        z-index: 10;
    }
}

@media screen and (max-width: 768px) {
    .public-header {
        height: 200px;
        font-size: 20px;
    }
}
</style>